package com.atguigu.tingshu.order.adapter.impl;

import com.atguigu.tingshu.order.adapter.PayWay;
import com.atguigu.tingshu.vo.order.OrderInfoVo;
import org.springframework.stereotype.Component;


@Component
public class ZhifubaoPayWayImpl implements PayWay {

    /**
     * 支付方式: 1102-支付宝
     * @param payWay
     * @return
     */
    @Override
    public Boolean supportPayWay(String payWay) {
        return "1102".equals(payWay);
    }

    /**
     * 支付方式: 1102-支付宝
     * @param orderInfoVo
     * @param orderNo
     * @param userId
     */
    @Override
    public void payWay(OrderInfoVo orderInfoVo, String orderNo, Long userId) {
        //TODO(扩展)
        System.out.println("支付宝支付逻辑");
    }



}
